<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="utf-8">
    <title>首页--layui后台管理模板</title>
    <meta name="renderer" content="webkit">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
    <meta name="apple-mobile-web-app-status-bar-style" content="black">
    <meta name="apple-mobile-web-app-capable" content="yes">
    <meta name="format-detection" content="telephone=no">
    <link rel="stylesheet" th:href="@{/layui/css/layui.css}" media="all"/>
    <link rel="stylesheet" th:href="@{//at.alicdn.com/t/font_tnyc012u2rlwstt9.css}" media="all"/>
    <link rel="stylesheet" th:href="@{/css/main.css}" media="all"/>
</head>
<body class="childrenBody">
<div class="panel_box row">
    <if (userMenu?size>0)>
        <list userMenu as items>
            <div class="panel col <#if (!items_has_next)>max_panel</#if> ">
                <a href="javascript:" data-url="${base}${items.href}">
                    <div class="panel_icon"
                    <#if (items.bgColor != "")>style="background-color: ${items.bgColor}"
                    <#else>style="background-color: #54ade8"</#if>>
                <i class="layui-icon" data-icon="${items.icon}">${items.icon}</i>
            </div>
            <div class="panel_word newMessage">
                <span>${items.dataCount}</span>
                <cite>${items.name}</cite>
            </div>
        </list>
    </if>
</div>


<script type="text/javascript" th:src="@{/static/layui/layui.js}"></script>
<script>
    layui.use(['layer', 'jquery', 'form'], function () {
        var layer = layui.layer,
            $ = layui.jquery,
            form = layui.form;

        $(".panel a").on("click", function () {
            window.parent.addTab($(this));
        });
    });
</script>
</body>
</html>